package com.pig4cloud.pigx.contract.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import com.pig4cloud.pigx.contract.annotation.SetScaleMainCurrency;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 */
@Data
public class ContractPositionMarginDetailVO {

	/**
	 * 操作类型（0加、1减）
	 */
	@ApiModelProperty(value = "操作类型（0加、1减）")
	private String operationType;

	/**
	 * 保证金
	 */
	@SetScaleMainCurrency
	@ApiModelProperty(value = "保证金")
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal margin;

	/**
	 * 强平价
	 */
	@SetScaleMainCurrency
	@ApiModelProperty(value = "强平价")
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal liquidatePrice;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

}
